@import "../styles/variables.scss";

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.filter-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  border: 1px solid #f1f5f9;
}

.filter-controls {
  display: flex;
  gap: 16px;
  align-items: center;

  .filter-input {
    flex: 1;
    min-width: 200px;
  }

  .filter-select {
    min-width: 160px;
  }

  .filter-button {
    flex-shrink: 0;
  }

  @media (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
    
    .filter-input, .filter-select {
      width: 100%;
    }
  }
}

.search-icon {
  color: #94a3b8;
}

.project-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f1f5f9;
  cursor: pointer;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }

  .project-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }

  .project-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
  }

  .project-card-description {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
  }

  .project-card-meta {
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .project-card-stats {
    display: flex;
    gap: 12px;
    margin-top: auto;
  }

  .project-card-stat {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .project-card-actions {
    display: flex;
    border-top: 1px solid #f3f4f6;
    background-color: #f9fafb;
  }

  .project-card-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #4b5563;
    font-size: 13px;
    transition: background-color 0.2s;

    &:hover {
      background-color: #f3f4f6;
    }

    &.danger:hover {
      color: #ef4444;
    }
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;

  &.env-prod {
    background-color: #fee2e2;
    color: #dc2626;
  }

  &.env-dev {
    background-color: #e0f2fe;
    color: #0284c7;
  }

  &.dept-IT {
    background-color: #e0f2fe;
    color: #0284c7;
  }

  &.dept-HZW {
    background-color: #f3e8ff;
    color: #7e22ce;
  }

  &.dept-RD {
    background-color: #dcfce7;
    color: #16a34a;
  }

  &.dept-Marketing {
    background-color: #fef3c7;
    color: #d97706;
  }
}

.pagination-container {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
}

.empty-container {
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
}

// Enhanced project card styles
.project-card-enhanced {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid #f1f5f9;
  height: 100%;

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
}

// Action buttons
.action-button {
  padding: 4px 8px;
  border-radius: 6px;
  
  &:hover {
    background-color: #f3f4f6;
  }
}

// Enhanced table styles
.enhanced-table {
  .ant-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .ant-table-thead > tr > th {
    background-color: #f8fafc;
    font-weight: 500;
  }

  .ant-table-tbody > tr:hover > td {
    background-color: #f1f5f9;
  }
}
